@extends('layout.home.master')
@section('content')
    <div class="row mt-2">
        <div class="col-9">
            <!-- Files -->
            <div class="card" data-toggle="lists" data-lists-values="[&quot;name&quot;]">
                <div class="card-header">
                    <div class="row align-items-center">
                        <div class="col">
                            <!-- Title -->
                            <h4 class="card-header-title">
                                搜索结果:
                            </h4>

                        </div>
                    </div> <!-- / .row -->
                </div>

                <div class="card-body">
                    <!-- List -->
                    <ul class="list-group list-group-lg list-group-flush list my--4">
                        @foreach($data as$datum)
                           @switch ($type)
                            @case ('article')
                            @include('layout.search.search_article')
                            @break
                            @case  ('topic')
                                @include('layout.search.search_topic')
                            @break
                            @case  ('video')
                                @include('layout.search.search_video')
                            @break
                        @endswitch
                            @endforeach
                    </ul>

                </div>

            </div>
            {{--{{$articles->links()}}--}}
        </div>
        <div class="col-sm-3">
            <div class="card">
                <div class="card-header">
                    公告
                </div>
                <div class="card-body">
                    <a href="" class="text-muted">每晚直播</a>
                    <hr>
                    <a href="" class="text-muted">实战培训</a>
                </div>
            </div>
        </div>
    </div>
    @endsection
